<template>
  <p v-for="(item,index) in arr" :key="index">
    索引值：{{ index }} --- 元素的内容是：{{ item }}
  </p>
</template>

<script setup>
const arr=["HTML","CSS","JavaScript","JQuery","Vue"];
</script>

<style>

</style>